﻿<table id="log-list">
    <thead>
        <tr>
            <th>
                Дата
            </th>
            <th>
                Событие
            </th>
        </tr>
    </thead>
    <tbody>
    @foreach (var logLine in Model.Data)
    {
        <tr >
            <td class="@logLine.MsgType">
                @logLine.Date
            </td>
            <td>
                @logLine.MsgContent
            </td>
        </tr>
    }
    </tbody>
    <tfoot>
        <tr>
            <td colspan="2">
                @for (int i = 1; i <= Model.NumberOfPages; i++)
                {
                    if (Model.CurrentPage == i)
                    {
                        <a class="page-number" href="javascript:void"><b>@i</b></a>
                    }
                    else
                    {
                        <a class="page-number" href="javascript:void">@i</a>
                    }
                }
            </td>
        </tr>
    </tfoot>
</table>